﻿using LdtDataEngin.ModuleDetail.BaseModule;
using LdtJudge.DataEngine.Common.DataSave;
using LdtJudge.DataEngine.DataBaseStores;
using LdtJudge.DataEngine.Model.XMLConfigModel.DataSave;
using System.Diagnostics;
using System.Xml;

namespace LdtDataEngin.ModuleDetail.OptimizationModule.OptimizationDataSave
{
    public class OptimizationDataSaveAsseml: AssermBase
    {
        public OptimizationDataSaveAsseml(DataContext context,string moudleName)
        {
            dataContext = context;
            base.MoudleName = moudleName;
        }

        public void DataSave(XmlDocument xmlTemplate, ReorderModel reorderModel)
        {
            DataResultSave dataResultSave = new DataResultSave(dataContext) { xmlTemplate=xmlTemplate,reorderModel=reorderModel};
            dataResultSave.OptimizationSave();
        }
    }
}
